import request from '@/utils/request'
/* 运营分类商品列表 */
export const productsList = data => {
  return request({
    url: 'productsOperateSort_manage/productsList',
    method: 'post',
    params: data
  })
}
/* 运营分类列表 */
export const listOperate = data => {
  return request({
    url: 'productsOperate_manage/listOperate',
    method: 'post',
    params: data
  })
}
/* 运营分类编辑 */
export const updateOperate = data => {
  return request({
    url: 'productsOperate_manage/updateOperate',
    method: 'post',
    data: data
  })
}
/* 运营分类搜索商品 */
export const listProductSelect = data => {
  return request({
    url: 'productsOperateSort_manage/listProductSelect',
    method: 'post',
    params: data
  })
}
/* 运营分类插入商品 */
export const insetProducts = data => {
  return request({
    url: 'productsOperateSort_manage/insetProducts',
    method: 'post',
    params: data
  })
}
/* 运营分类删除商品 */
export const deleteProducts = data => {
  return request({
    url: 'productsOperateSort_manage/deleteProducts',
    method: 'post',
    params: data
  })
}
/* 运营分类下商品排序 */
export const productsSortChange = data => {
  return request({
    url: 'productsOperateSort_manage/productsSortChange',
    method: 'post',
    params: data
  })
}
